package shuashuami.hb.com.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import shuashuami.hb.com.hbclient.R;

public class CTaskDescriptionFragment extends Fragment {

    private TextView tvTaskNum, tvTaskPName, tvTaskType, tvXiaDanType, tvYaoqiu;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_ctask_description, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        tvTaskNum = (TextView) view.findViewById(R.id.tv_ctask_description_num);
        tvTaskPName = (TextView) view.findViewById(R.id.tv_ctask_description_task_name);
        tvTaskType = (TextView) view.findViewById(R.id.tv_ctask_description_task_type);
        tvXiaDanType = (TextView) view.findViewById(R.id.tv_ctask_description_xiadan_type);
        tvYaoqiu = (TextView) view.findViewById(R.id.tv_ctask_description_is_pingjia);
    }

    public void setMessage(String taskNum, String taskPName, String taskType, String xiaDantype, String yaoqiu) {
        tvTaskNum.setText(taskNum);
        tvTaskPName.setText(taskPName);
        tvTaskType.setText(taskType);
        tvXiaDanType.setText(xiaDantype);
        tvYaoqiu.setText(yaoqiu);
    }

}
